package com.chen.recruit.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.hutool.core.date.DatePattern;
import com.chen.recruit.common.constants.SysConstants;
import com.chen.recruit.common.enums.BusinessStatus;
import lombok.Data;

import java.util.Date;

/**
 * 登录日志对象 t_login_log
 *
 * @author cgy
 * @date 2022-08-20
 */
@Data
public class LoginLog {

    private static final long serialVersionUID = 1L;

    /**
     * 登录日志id
     */
    private Integer id;
    /**
     * 登录用户名
     */
    @Excel(name = "登录用户名", width = 20)
    private String username;
    /**
     * 登录IP
     */
    @Excel(name = "登录IP", width = 20)
    private String ip;
    /**
     * 登录地点
     */
    @Excel(name = "登录地点", width = 20)
    private String location;
    /**
     * 浏览器类型
     */
    @Excel(name = "浏览器类型", width = 20)
    private String browser;
    /**
     * 操作系统
     */
    @Excel(name = "操作系统", width = 20)
    private String os;
    /**
     * 登录状态（0成功 1失败）
     */
    @Excel(name = "登录状态", width = 20, enumExportField = SysConstants.ENUM_EXPORT_FIELD)
    private BusinessStatus status;
    /**
     * 提示消息
     */
    @Excel(name = "提示消息", width = 20)
    private String msg;
    /**
     * 登录时间
     */
    @Excel(name = "登录时间", width = 20, format = DatePattern.NORM_DATETIME_PATTERN)
    private Date loginTime;

}
